package cn.imnaer.service.rpc.scenic.impl;

import cn.imnaer.service.rest.view.model.Place;
import cn.imnaer.service.rpc.location.CityComponentRpcApiImpl;
import cn.imnaer.service.rpc.location.CityDaoImpl;
import cn.imnaer.service.rpc.scenic.process.StateModuleProcess;

import java.util.List;

public class SwitchDestinationRpcApiImpl {
    /**
     * @param keywords
     * @return 支持洲，国家，省份，城市搜索
     */
    public List<Place> switchDestination(String keywords) { 	  
    List<Place> cities = new  CityComponentRpcApiImpl().search(keywords);
   List<Place> states = new StateModuleProcess().getStateList(keywords);
   states.addAll(cities);
   return  states;
}
    
    
   
}
